package com.fit.dao.studentOfTheCourse;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.studentOfTheCourse.StudentOfTheCourse;
import com.fit.entities.user.User;

public interface StudentOfTheCourseDAO {

	@CommitAfter
	public boolean save(StudentOfTheCourse newStudentOfTheCourse);

	@CommitAfter
	public boolean delete(StudentOfTheCourse studentOfTheCourse);

	@CommitAfter
	public boolean update(StudentOfTheCourse studentOfTheCourse);

	public List<StudentOfTheCourse> findAll();

	public StudentOfTheCourse  findByIdStudentAndIdCourse(int userId, int courseId);

	public StudentOfTheCourse findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
